package com.scorpio.system.controller;

import com.scorpio.tools.api.R;
import com.scorpio.user.api.feign.IUser2Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author sdaduanbilei
 */
@RestController
@RequestMapping("/sys/test")
@RefreshScope
public class SystemController {



    @Autowired
    private IUser2Client iUser2Client;


    @GetMapping("/v1/get")
    public R list() {
        return R.data(iUser2Client.getAll()+"");
    }

    @GetMapping("/v1/list")
    public R test(){
        return R.data("1111111111");
    }
}
